/**
 * 
 */
package com.ezops.models;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Administrator
 * 
 */

@Entity
@Table(name = "USER_PREFERENCE")
public class UserPreference implements DomainEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6203794022249886761L;

	@Id
	@Column(name = "PREFERENCE_ID")
	private long preferenceId;

	@Column(name = "USER_ID")
	private String userId;

	@Column(name = "RESOURCE_NAME")
	private String resourceName;

	@Column(name = "CATEGORY")
	private String category;

	@Column(name = "SEQUENCE_NBR")
	private int sequenceNbr;

	@Column(name = "CREATED_ON")
	private Date createdOn;

	@Column(name = "UPDATED_ON")
	private Date updatedOn;

	

	public long getPreferenceId() {
		return preferenceId;
	}



	public void setPreferenceId(long preferenceId) {
		this.preferenceId = preferenceId;
	}



	public String getUserId() {
		return userId;
	}



	public void setUserId(String userId) {
		this.userId = userId;
	}



	public String getResourceName() {
		return resourceName;
	}



	public void setResourceName(String resourceName) {
		this.resourceName = resourceName;
	}



	public String getCategory() {
		return category;
	}



	public void setCategory(String category) {
		this.category = category;
	}



	public int getSequenceNbr() {
		return sequenceNbr;
	}



	public void setSequenceNbr(int sequenceNbr) {
		this.sequenceNbr = sequenceNbr;
	}



	public Date getCreatedOn() {
		return createdOn;
	}



	public void setCreatedOn(Date createdOn) {
		this.createdOn = createdOn;
	}



	public Date getUpdatedOn() {
		return updatedOn;
	}



	public void setUpdatedOn(Date updatedOn) {
		this.updatedOn = updatedOn;
	}



	@Override
	public String toString() {
		return "UserPreference [preferenceId=" + preferenceId + ", userId="
				+ userId + ", resourceName=" + resourceName + ", category="
				+ category + ", sequenceNbr=" + sequenceNbr + ", createdOn="
				+ createdOn + ", updatedOn=" + updatedOn + "]";
	}



	@Override
	public String getId() {
		// TODO Auto-generated method stub
		return null;
	}

}